]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/volume: Clear device menus when unsetting stream
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 25 Nov 2022 16:08:51 +0000 (17:08 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 28 Nov 2022 00:00:21 +0000 (00:00 +0000)
Otherwise we end up accumulating devices when pipewire crashes or
is restarted.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6142

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2558>

js/ui/status/volume.js

index bd49cc3ae8a0783103b586a2f39b4840c4ad5dd4..57e179974115ab5bcfd18df095fb804ee9a77cad 100644 (file)
@@ -83,6 +83,8 @@ const StreamSlider = GObject.registerClass({
             this._connectStream(this._stream);
             this._updateVolume();
         } else {
+            this._deviceSection.removeAll();
+            this._deviceItems.clear();
             this.emit('stream-updated');
         }